package com.yfp.operation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.operation.domain.CPComboRoad;
import com.yfp.operation.mapper.CPComboRoadMapper;
import com.yfp.operation.service.CPComboRoadService;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.List;

/**
* @author admin
* @description 针对表【c_p_combo_road】的数据库操作Service实现
* @createDate 2024-04-24 16:50:31
*/
@Service
public class CPComboRoadServiceImpl extends ServiceImpl<CPComboRoadMapper, CPComboRoad> implements CPComboRoadService {

    @Resource
    private CPComboRoadMapper cpComboRoadMapper;

    /**
     * 根据cPlanId查询餐品投放计划
     * @param cPlanId
     * @return
     */
    @Override
    public List<CPComboRoad> getCPComboRoads(String cPlanId) {

        List<CPComboRoad> CPComboRoadList = cpComboRoadMapper.getCPComboRoads(cPlanId);
        return CPComboRoadList;
    }

    @Override
    public List<CPComboRoad> selectByCpIdAndDate(String cPlanId, String currentDate) {


        return cpComboRoadMapper.selectByCpIdAndDate(cPlanId,currentDate);
    }
}




